<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>css画大风车</title>
    <style type="text/css">
    .wrap {
        width: 320px;
        height: 320px;
        position: absolute;
        animation: rotate 2s linear infinite;
        /* animation: name duration timing-function delay iteration-count direction;
         rotate   name              动画名字
         2s       duration          规定完成动画所花费的时间，以秒或毫秒计。   
         linear   timing-function   规定动画的速度曲线，动画从头到尾的速度是相同的。
         infinite iteration-count   规定动画应该播放的次数，规定动画应该无限次播放。*/
    }

    .box1,
    .box2,
    .box3,
    .box4 {
        width: 160px;
        height: 160px;
        position: absolute;
    }

    .box1 {
        left: 80px;
        background: linear-gradient(to right, #00ced1 50%, transparent 50%);
        border-radius: 80px 0 0 80px;
    }

    .box2 {
        right: 0;
        background: linear-gradient(to bottom, #ff4500 50%, transparent 50%);
        border-radius: 80px 80px 0 0;
        top: 80px;
    }

    .box3 {
        left: 80px;
        background: linear-gradient(to left, #ffc0cb 50%, transparent 50%);
        border-radius: 0 80px 80px 0;
        top: 160px;
    }

    .box4 {
        top: 80px;
        background: linear-gradient(to top, #d4dc14 50%, transparent 50%);
        border-radius: 0 0 80px 80px;
    }

    .gunzi {
        width: 20px;
        height: 260px;
        background: black;
        position: absolute;
        z-index: -1;
        top: 168px;
        left: 160px;
    }
    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
    </style>
</head>

<body>
    <div class='Windmill-centent'>
        <div class="wrap">
            <div class="box1"></div>
            <div class="box2"></div>
            <div class="box3"></div>
            <div class="box4"></div>
        </div>
        <div class="gunzi"></div>
    </div>
</body>

</html>